<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/layout.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.mm {
	background:#FFF;
	float:left;
	border-top-width:2px;
	border-right-width:2px;
	border-bottom-width:2px;
	border-top-style:solid;
	border-right-style:solid;
	border-bottom-style:solid;
	border-top-color:#999;
	border-right-color:#999;
	border-bottom-color:#999;
	width:180px
}
.nn {
	background:#eee;
	float:left;
	border-top-width:2px;
	border-bottom-width:2px;
	border-top-style:solid;
	border-bottom-style:solid;
	border-top-color:#999;
	border-bottom-color:#999;
	width:100px;
	border-left-width: 2px;
	border-left-style: solid;
	border-left-color: #999;
	text-align: right;
}
.mm li {
	border-bottom: 1px solid #eee;
	padding: 5px;
	float: left;
	width: 100%;
}
.nn li {
	border-bottom: 1px solid #eee;
	padding: 5px;
}
#Buynowbottom span {
	display: none;
}
#Buynowbottom {
	height: 36px;
	width: 126px;
	display: block;
	background-image: url(../<smart>$templatepath</smart>/home/images/buynowsmall.gif);
	background-repeat: no-repeat;
	background-position: center center;
	margin: auto;
}
.compare_pic {
	text-align: center;
	height: 90px;
}
.compare_name {
	line-height:20px;
}
.compare_Buynow {
	height: 50px;
	padding-top: 2px;
	padding-right: 5px;
	padding-bottom: 0;
	padding-left: 5px;
}
-->
</style>
<smart>include file ='../head.config.html'</smart>
<script type="text/javascript">
    	function doBid(id) {
    		var form = document.getElementById('bidForm_' + id);
     		if (form) {
         	 	try {
          			form.submit();
          		}catch (e) {
          		}
     		}
        }
    	</script>
</head>
<body>
<div id="container"><smart>include file ='../header.html'</smart>
  <div>
    <ul class="nn">
      <li class="compare_name">&nbsp;</li>
      <li class="compare_pic" style="text-align:right">图片</li>
      <li class="compare_name">名称</li>
      <li class="compare_Buynow">出价/购买</li>
      <li class="compare_name">剩余时间</li>
      <li class="compare_name">掌柜</li>
      <li class="compare_name">价格</li>
      <li class="compare_name">运费</li>
      <li class="compare_name">所在地</li>
      <li class="compare_name">新旧程度</li>
    </ul>
    <smart> section name=i loop=$product_compare </smart>
    <ul class="mm">
      <li class="compare_name"><a href="product.php?action=compare_remove&pid=<smart> $product_compare[i].p_code </smart>">移除</a></li>
      <li class="compare_pic"><a href="product.php?action=view&pid=<smart> $product_compare[i].p_code </smart>" target="_blank"><img src="../<smart> $product_compare[i].p_pic|default:'templates/default/home/images/default.jpg' </smart>" height="70" /></a></li>
      <li class="compare_name"><a href="product.php?action=view&pid=<smart> $product_compare[i].p_code </smart>" target="_blank"><smart> $product_compare[i].p_name </smart></a></li>
      <li class="compare_Buynow"><a id="Buynowbottom" href="javascript:doBid('<smart> $product_compare[i].p_code </smart>');"><span>立即购买</span></a></li>
      <li class="compare_name">1<smart> $product_compare[i].left_days </smart>天<smart> $product_compare[i].left_hours </smart>时<smart> $product_compare[i].left_minutes </smart>分</li>
      <li class="compare_name"><smart> $product_compare[i].shopmaster </smart></li>
      <li class="compare_name"><smart> $product_compare[i].p_price </smart></li>
      <li class="compare_name"><smart> if $product_compare[i].p_transfee_charge == "1" </smart>平邮：<smart> $product_compare[i].p_tf_py </smart><br />
        快递：<smart> $product_compare[i].p_tf_kd </smart><br />
        EMS：<smart> $product_compare[i].p_tf_ems </smart><smart> else </smart>运费由卖家承担<smart> /if </smart></li>
      <li class="compare_name"><smart> $product_compare[i].p_province </smart><smart> $product_compare[i].p_city </smart></li>
      <li class="compare_name"><smart> $product_compare[i].product_type </smart></li>
      <form name="bidForm_<smart> $product_compare[i].p_code </smart>" id="bidForm_<smart> $product_compare[i].p_code </smart>" action="product.php?action=buy" method="post">
        <input type="hidden" name="item_id" value="<smart> $product_compare[i].p_code </smart>" />
        <input type="hidden" name="auction_type" value="<smart> $product_compare[i].p_sell_type </smart>" />
        <input type="hidden" name="title" value="<smart> $product_compare[i].p_name </smart>" />
        <input type="hidden" name="seller_id" value="<smart> $product_compare[i].member_id </smart>" />
        <input type="hidden" name="seller_nickname" value="<smart> $product_compare[i].shopmaster </smart>" />
        <smart> if $product_compare[i].p_transfee_charge == "1" </smart>
        <input type="hidden" name="who_pay_ship" value="1" />
        <input type="hidden" name="tf_py" value="<smart> $product_compare[i].p_tf_py </smart>" />
        <input type="hidden" name="tf_kd" value="<smart> $product_compare[i].p_tf_kd </smart>" />
        <input type="hidden" name="tf_ems" value="<smart> $product_compare[i].p_tf_ems </smart>" />
        <smart> else </smart>
        <input type="hidden" name="who_pay_ship" value="运费由卖家承担" />
        <smart> /if </smart>
        <input type="hidden" name="current_price" value="<smart> $product_compare[i].p_price </smart>" />
        <smart> if $product_row.p_sell_type == "1" </smart>
        <input type="hidden" name="buy_now" value="<smart> $product_compare[i].p_price </smart>" />
        <smart> /if </smart> <smart> if $product_row.p_sell_type == "2" </smart>
        <input type="hidden" name="buy_now" value="<smart> $product_compare[i].p_group_price </smart>" />
        <smart> /if </smart>
        <input type="hidden" name="count" value="<smart> $product_compare[i].p_storage </smart>" />
        <input type="hidden" name="photo_url" value="<smart> $product_compare[i].p_pic </smart>" />
        <input type="hidden" name="region" value="<smart> $product_compare[i].p_province </smart><smart> $product_compare[i].p_city </smart>" />
      </form>
    </ul>
    <smart> /section </smart> </div>
    <div style="float:left;clear:both;">
      	<ul class="nn">
      		<smart> section name=c loop=$product_attribute_compare </smart>
        		<smart> section name=d loop=$product_attribute_compare[c] </smart>
      				<li class="compare_name"><smart> $product_attribute_compare[c][d].a_name </smart></li>
      			<smart> /section </smart>
        	<smart> /section </smart>
      	</ul>
      
      	<smart> section name=i loop=$product_compare </smart>
      		<ul class="mm">
        	<smart> section name=j loop=$product_attribute_compare </smart>
            	<smart> section name=m loop=$product_attribute_compare[j] </smart>
            		<li class="compare_name">
            		<smart> section name=k loop=$product_attribute_content[i][j] </smart>
                    	<smart> if $product_attribute_compare[j][m].a_id == $product_attribute_content[i][m][k].a_id </smart>
            				<smart> if $product_attribute_content[i][m][k].ischecked == 1 </smart>
                				<smart> $product_attribute_content[i][m][k].ac_content </smart>
                			<smart> /if </smart>
                     	<smart> /if </smart>
            		<smart> /section </smart>
        			</li>
            	<smart> /section </smart>
        	<smart> /section </smart>
        	</ul>
        <smart> /section </smart>
      </div>
      
  <smart>include file ='../footer.html'</smart> </div>
</body>
</html>
